{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
    <li><a href="javascript:;">余额明细</a></li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-list">
			<form action="" method="get" class="form-horizontal" role="form" id="form1">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="{MODULE_NAME}" />
				<input type="hidden" name="p" value="member" />
				<input type="hidden" name="ac" value="memberFinancialDetails" />
				<input type="hidden" name="do" value="balance" />
				<input type="hidden" name="type" value="{$_GPC['type']}" />
				<div class="form-group">
					<label class="col-sm-2 control-label">变更类型</label>
					<div class="col-sm-9">
						<div class="btn-group">
							<a href="{php echo wl_filter_url('type:0');}" class="btn {if intval($_GPC['type']) == 0}btn-primary{else}btn-default{/if}">不限</a>
							<a href="{php echo wl_filter_url('type:1');}" class="btn {if $_GPC['type'] == 1}btn-primary{else}btn-default{/if}">增加</a>
							<a href="{php echo wl_filter_url('type:2');}" class="btn {if $_GPC['type'] == 2}btn-primary{else}btn-default{/if}">减少</a>
						</div>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">时间</label>
					<div class="col-sm-9">
						{php echo tpl_select_time_info('time_limit', array('starttime' => date('Y-m-d',$starttime), 'endtime' => date('Y-m-d', $endtime)));}
					</div>
				</div>
				<div class="form-group form-inline">
					<label class="col-sm-2 control-label">记录搜索</label>
					<div class="col-sm-9">
						<select name="keywordtype" class="form-control">
							<option value="1" {if $_GPC['keywordtype']==1}selected="selected"{/if}>用户ID</option>
							<option value="2" {if $_GPC['keywordtype']==2}selected="selected"{/if}>用户昵称</option>
							<option value="3" {if $_GPC['keywordtype']==3}selected="selected"{/if}>用户手机</option>
						</select>
						<input type="text" name="keyword" class="form-control" value="{$_GPC['keyword']}"  placeholder="请输入关键字"/>
	                </div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-9">
						<button class="btn btn-primary" id="search">筛选</button>
						<button class="btn btn-default min-width" name="export" type="submit" value="export"><i class="fa fa-download"></i>  导出记录</button>
					</div>
				</div>
			</form>	
		</div>
	</div>
	<div class="app-table-list">
        <div class="table-responsive">
            <table class="table table-hover">
                <thead class="navbar-inner">
                    <tr>
                        <th style="width:25%;">用户信息</th>
                        <th style="width:10%;">变更数值</th>
                        <th style="width:10%;">变更类型</th>
                        <th style="width:30%;">变更描述</th>
                        <th style="width:25%;">变更时间</th>
                    </tr>
                </thead>
                <tbody>
                    {loop $details $de}
                    <tr>
                        <td><img src="{$de['avatar']}" style="width: 30px;height: 30px;"> {$de['nickname']}</td>
                        <td style="color: red;">￥{$de['num']}</td>
                        <td>
                        	{if $de['num'] > 0}
                        	<span  class="label label-success">增加</span>
                        	{else}
                        	<span  class="label label-danger">减少</span>
                        	{/if}
                        </td>
                        <td>{$de['remark']}</td>
                        <td>{$de['createtime']}</td>
                    </tr>
                    {/loop}
                </tbody>
            </table>
        </div>
        <div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
    </div>
</div>	


{php include wl_template('common/footer');}